package com.common;

import com.constants.Constants;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * 分页封装
 * @Description: 
 * @author daigb
 * @date 2021-04-13
 */
@Data
public class PageRequest {

    @ApiModelProperty(value = "页码", example= Constants.DEFAULT_PAGE + "")
    @Deprecated
    private int pageNow = Constants.DEFAULT_PAGE;

    @ApiModelProperty(value = "页码", example= Constants.DEFAULT_PAGE + "")
    private int page = Constants.DEFAULT_PAGE;

    @ApiModelProperty(value = "每页数量", example = Constants.DEFAULT_LIMIT + "")
    private int pageSize = Constants.DEFAULT_LIMIT;

    private String orderBy;

}
